import 'package:flutter/material.dart';
import 'package:mybase/base/tool/extension/FFStringExt.dart';
import 'package:myuis/language/LanguageConfig.dart';

///语言常量
class LanguageValue {
  static cancelSub(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.cancelSub;
  }

  static cancelSubInfo(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.cancelSubInfo;
  }

  static androidSub(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.androidSub;
  }

  static androidSub2(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.androidSub2;
  }

  static androidSub3(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.androidSub3;
  }

  static androidSub4(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.androidSub4;
  }

  static androidSub5(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.androidSub5;
  }

  static iosSub1(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.iosSub1;
  }

  static iosSub2(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.iosSub2;
  }

  static iosSub3(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.iosSub3;
  }

  static iosSub4(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.iosSub4;
  }

  static loveApp(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.loveApp;
  }

  static loveApp2(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.loveApp2;
  }

  static loveit(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.loveit;
  }

  static noloveit(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.noloveit;
  }

  static freetrialworks(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.freetrialworks;
  }

  static today(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.today;
  }

  static trial1(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.trial1;
  }

  static today3(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.today3;
  }

  static trial3(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.trial3;
  }

  static today4(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.today4;
  }

  static trial4(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.trial4;
  }

  static howTowCancel(BuildContext context) {
    return AppuisLocale.of(context)?.language?.auto?.howTowCancel;
  }

  static HowCancelInfo(BuildContext context, String appName) {
    return AppuisLocale.of(context)
            ?.language
            ?.auto
            ?.HowCancelInfo
            ?.format([appName]) ??
        "";
  }
}
